package Mangos::DB::Mangos::PointsOfInterest;

use strict;

use base qw(Mangos::DB::Mangos);

__PACKAGE__->meta->setup
(
    table   => 'points_of_interest',

    columns => 
    [
        entry     => { type => 'integer', not_null => 1 },
        x         => { type => 'float', default => '0', not_null => 1, precision => 32 },
        y         => { type => 'float', default => '0', not_null => 1, precision => 32 },
        icon      => { type => 'integer', default => '0', not_null => 1 },
        flags     => { type => 'integer', default => '0', not_null => 1 },
        data      => { type => 'integer', default => '0', not_null => 1 },
        icon_name => { type => 'text', length => 65535, not_null => 1 },
    ],

    primary_key_columns => [ 'entry' ],
);

1;

package Mangos::DB::Mangos::PointsOfInterest::Manager;

use strict;
use warnings;

use base 'Rose::DB::Object::Manager';

sub object_class { 'Mangos::DB::Mangos::PointsOfInterest' }

__PACKAGE__->make_manager_methods('points_of_interest');

1;
